﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Adams.Public.Web.Controllers
{
    public class DailyPrayersController : Controller
    {
        [AppendLayoutViewModel]
        public ActionResult Index(Adams.Public.DataTransfer.Web.DailPrayers.Index.PageLoadInput input)
        {
            input.Location = Adams.Shared.UrlHelper.Dec(input.Location);
            input.Month = Adams.Shared.UrlHelper.Dec(input.Month);

            var model = Business.Web.DailyPrayers.Index.PageLoad(input);
            ViewBag.Month = input.Month;
            return View(model);
        }
    }
}
